package com.wangwei.mq.springboot;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by wangwei on 2019/11/15 0015.
 */
@Component
public class MessageHandle {
    @RabbitListener(queues = {"mail"})
    public void handle(String body){
        System.out.println("-------mail receive------");
        System.out.println(body);
    }
}
